#!/bin/bash
mem=`free -m|grep "Mem"|awk '{print $7}'`
if [ $mem -le 200 ];then
   echo "内存已小于200M"
 else
   echo "内存正常"
fi 